﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.PhanQuyen.AuthenticationForm>" %>
<%@ Import Namespace="System.Web.Mvc.Html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name='robots' content='all, follow' />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <title>Great admin</title>   
    <link href="../../Content/Styles/css/login.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Styles/css/login-blue.css" rel="stylesheet" type="text/css" />  <!-- color skin: blue / red / green / dark -->
    <!-- Google Analytics -->
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-797086-8']);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();    
    </script>
    <script src="<%=ResolveUrl("~/Content/Scripts/jquery-1.6.2.min.js") %>" type="text/javascript"></script>
    <script type="text/javascript" src="<%=ResolveUrl("~/Content/Scripts/Authentication/Authentication.js")%>"></script>
    <script type="text/javascript" language="javascript">
        var basePath = '<%=ResolveUrl("~/") %>';
        $(document).ready(function () {
            $("#UserName").focus();
        });
    </script>
</head>
<body>
    <%Html.BeginForm(); %>
    <input type="hidden" id="Hidden1" name="Name" />
     <div id="main" class="formBox">
    <div id="content">
      <div id="login">
       
        <div id="logo"><span>Great Admin</span></div>
                
        <form method="post" action="homepage.html" id="form-login" class="formBox">
          <fieldset>
              <div class="red_bold" id="AuthenticationMessage">
                  <%= Model.IsAuthenticationError ? Model.LoginMessage : String.Empty%>
              </div>
            <div class="form-col">
                <label for="username" class="lab">Username <span class="warning"></span></label>
               <%=Html.TextBox("UserName", Model.UserName, new { @size = 28, @onkeypress = "if (event.keyCode==13) { return DoLogin(); }" ,@class="input" })%>
            </div>
            <div class="form-col form-col-right">
                <label for="password" class="lab">Password <span class="warning"></span></label>
                 <%=Html.Password("Password", Model.Password, new { @size = 28, @value = "", @onkeypress = "if (event.keyCode==13) { return DoLogin(); }",  @class = "input" })%>
            </div>
            <div class="form-col form-col-check">
              <label><input type="checkbox" name="remeber_me" class="checkbox" />Remember me on this computer</label> 
            </div>
            <div class="form-col form-col-right"> 
              <input type="submit" name="" value="Login" class="submit" onclick="DoLogin();" />
            </div>                 
          </fieldset>
        </form>
        
      </div>
    </div><!-- /content -->    
  </div><!-- /main -->
     <%Html.EndForm(); %>
</body>
</html>
